﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ERPJopi.DAL.Entities
{
    public class Status
    {
        [Key, Column(Order=0)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int IdStatus { get; set; }

        [Key, Column(Order = 1)]
        [Required]
        [Display(Name="Código do Registro")]
        public int IdRegistro { get; set; }

        [Required]
        [Display(Name="Descrição do status")]
        public string Descricao { get; set; }

        [Required]
        public Registro Registro { get; set; }

    }
}
